Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Javascript and backend to populate the WebUI for ServerSideKeygen #2

Open
wants to merge 1 commit into
base: Bug1794213-ServerKeygenEnroll
Choose a base branch
from

Conversation

SilleBille
Copy link

This Patch:

  • Uses javascript to fill up the web UI request for ServerSide Keygen request profile

  • Provides 2 drop down boxes: KeyType and Keysize. KeySize autoupdates based on
    the KeyType selected. Example: RSA -> 1024, 2048,.. ; ECC -> nistp521, nistp256

  • The keyType and keySize are read from the profile's attr:
    policyset.userCertSet.3.constraint.params.keyParameters

File wise changes:

  • ServerKeygenUserKeyDefault.java can now generate Key pair based on the user's
    selection. (NOTE: This logic was added from my previous PR and can be removed.)

  • ServerKeygenInput.java sends 2 new fields (keyType and keyRequest) to the request, to be
    displayed on the webUI

  • ProfileSelect.template carries the javascript changes. Note that there are 2 new if
    conditions included: "server_side_keygen_key_type" and "server_side_keygen_key_size".
    This ensures that it doesn't meddle with other profile web UIs

  • IDescriptor.java and UserMessages.properties carry the appropriate String values to
    be displayed/requested from user.

Signed-off-by: Dinesh Prasanth M K [email protected]

@SilleBille
Copy link
Author

From the ca debug log:

[16/Apr/2020:21:03:15][http-bio-8443-exec-10]: ServerKeygenUserKeyDefault: populate: keyType in request: EC
[16/Apr/2020:21:03:15][http-bio-8443-exec-10]: ServerKeygenUserKeyDefault: populate: keyCurve in request: nistp521

which shows that the values selected in WebUI are now available in the backend.

@SilleBille SilleBille force-pushed the Bug1794213-ServerKeygenEnroll branch 2 times, most recently from f384732 to f9dc3be Compare April 17, 2020 01:37
This patch:

- Uses javascript to fill up the web UI request for ServerSide Keygen request profile

- Provides 2 drop down boxes: KeyType and Keysize. KeySize autoupdates based on
  the KeyType selected. Example: RSA -> 1024, 2048,.. ; ECC -> nistp521, nistp256

- The keyType and keySize are read from the profile's attr:
  policyset.userCertSet.3.constraint.params.keyParameters

File wise changes:

- ServerKeygenInput.java sends 2 new fields (keyType and keyRequest) to the request, to be
  displayed on the webUI

- ProfileSelect.template carries the javascript changes. Note that there are 2 new if
  conditions included: "server_side_keygen_key_type" and "server_side_keygen_key_size".
  This ensures that it doesn't meddle with other profile web UIs

- IDescriptor.java and UserMessages.properties carry the appropriate String values to
  be displayed/requested from user.

Signed-off-by: Dinesh Prasanth M K <[email protected]>
@SilleBille SilleBille force-pushed the Bug1794213-ServerKeygenEnroll branch from f9dc3be to 62c9c9f Compare April 17, 2020 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant